package com.zoshine.zzg.pojo;

import com.zoshine.zzg.base.Pagination;

/**
 * 导入导出
 *
 * @author 贾俊峰
 * @time 2017/7/28 14:11
 */
public class ImportExport extends Pagination {
    private static final long serialVersionUID = 8598968665142689061L;

    /** 导出 */
    public static final int EXPORT = 1;
    /** 导入 */
    public static final int IMPORT = 2;
    /** 外网 */
    public static final int OUTER = 1;
    /** 内网 */
    public static final int INNER = 2;
    /** 银行 */
    public static final int BANK = 3;


    /** 操作类型（1：导出，2：导入） */
    private Integer type;
    /** 源（1：外网，2：内网，3：银行） */
    private Integer source;
    /** 目标（1：外网，2：内网，3：银行） */
    private Integer target;
    /** 监所编号 */
    private Long prisonId;
    /** 监所名称 */
    private String prisonName;
    /** 序列号 */
    private Integer serialNumber;
    /** 下载地址 */
    private String downloadUrl;

    public String getTypeStr() {
        if (type == null) return null;
        switch (type) {
            case EXPORT:
                return "导出";
            case IMPORT:
                return "导入";
        }
        return null;
    }

    public String getSourceStr() {
        if (source == null) return null;
        switch (source) {
            case OUTER:
                return "外网";
            case INNER:
                return "内网";
            case BANK:
                return "银行";
        }
        return null;
    }

    public String getTargetStr() {
        if (target == null) return null;
        switch (target) {
            case OUTER:
                return "外网";
            case INNER:
                return "内网";
            case BANK:
                return "银行";
        }
        return null;
    }

    //===============get/set
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public Integer getTarget() {
        return target;
    }

    public void setTarget(Integer target) {
        this.target = target;
    }

    public Long getPrisonId() {
        return prisonId;
    }

    public void setPrisonId(Long prisonId) {
        this.prisonId = prisonId;
    }

    public String getPrisonName() {
        return prisonName;
    }

    public void setPrisonName(String prisonName) {
        this.prisonName = prisonName;
    }

    public Integer getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(Integer serialNumber) {
        this.serialNumber = serialNumber;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }
}
